home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_ai / CONTINUE < prev    next >
Text File  |  1994-02-21  |  462b  |  24 lines

  1. CONTINUE:
  2.  
  3.     The continue statement in RLaB is similar to the C language
  4.     continue statement. When a continue statement is encountered,
  5.     it causes the next iteration of the enclosing for or while
  6.     loop to begin.
  7.  
  8.     For example, the following set of statements causes the
  9.     variable `i' to be printed when it's value is 2.
  10.  
  11.     > for (i in 1:3)
  12.       {
  13.         if (i == 2)
  14.         {
  15.           i ?
  16.         else
  17.           continue
  18.         }
  19.       }
  20.      i =
  21.             2
  22.  
  23. See Also: BREAK, FOR, WHILE
  24.